/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import java.awt.Graphics;
import javax.swing.ImageIcon;
import utility.ImageToolbox;

/**
 *
 * @author Maja Gliese
 */
public class MenuPanel extends javax.swing.JPanel {

    /**
     * Creates new form MenuPanel
     */
    public MenuPanel() {
        initComponents();
        setSize(609, 380);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        statistikKnap = new javax.swing.JButton();
        lagerKnap = new javax.swing.JButton();
        salgsHisKnap = new javax.swing.JButton();
        kasseKnap = new javax.swing.JButton(){
            public void paint(Graphics g){
                ImageToolbox.drawImage(g, (ImageIcon)kasseKnap.getIcon(), 0, 0, kasseKnap.getWidth(), kasseKnap.getHeight());
            }
        };

        setLayout(null);

        statistikKnap.setText("Statistik");
        add(statistikKnap);
        statistikKnap.setBounds(120, 190, 180, 90);

        lagerKnap.setText("Lager");
        add(lagerKnap);
        lagerKnap.setBounds(120, 80, 180, 90);

        salgsHisKnap.setText("Salgshistorik");
        add(salgsHisKnap);
        salgsHisKnap.setBounds(320, 190, 180, 90);

        kasseKnap.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Kasseknap.png"))); // NOI18N
        kasseKnap.setText("Kasse");
        kasseKnap.setContentAreaFilled(false);
        add(kasseKnap);
        kasseKnap.setBounds(320, 80, 180, 90);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton kasseKnap;
    private javax.swing.JButton lagerKnap;
    private javax.swing.JButton salgsHisKnap;
    private javax.swing.JButton statistikKnap;
    // End of variables declaration//GEN-END:variables
}
